import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class ContainerPageView extends StatelessWidget {
  @override
  Widget build(BuildContext context) {

    return Container(
      child: Text("Hello World"),
      width: 180,
      height: 120,
      alignment: Alignment.bottomRight,
      decoration: BoxDecoration(
        color: Colors.red,
        borderRadius: BorderRadius.circular(20)
      ),
      margin: EdgeInsets.all(20),
      padding: EdgeInsets.all(20),
    );
  }
}


class PaddingPageView extends StatelessWidget {
  @override
  Widget build(BuildContext context) {

    return Center(child:

      Padding(padding: EdgeInsets.all(20),
    child: Text("Hello World")));
    // return Container(
    //   child: Text("Hello World"),
    //   width: 180,
    //   height: 120,
    //   alignment: Alignment.bottomRight,
    //   decoration: BoxDecoration(
    //       color: Colors.red,
    //       borderRadius: BorderRadius.circular(20)
    //   ),
    //   margin: EdgeInsets.all(20),
    //   padding: EdgeInsets.all(20),
    // );
  }
}